﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.Manager
{
    public class TC_OWR_FILE
    {
        private readonly DataAccess.TC_OWR_FILE tc_OWR_FILE;
        public TC_OWR_FILE()
        {
            tc_OWR_FILE = new DataAccess.TC_OWR_FILE();
        }
        public bool Add(Model.TC_OWR_FILE model)
        {
            return tc_OWR_FILE.Add(model);
        }
        public string Del(Model.TC_OWR_FILE model)
        {
            return tc_OWR_FILE.Del(model);
        }

        public List<Model.TC_OWR_FILE> GetList(List<string> owi, string l_date, string status,string l_type)
        {
            return tc_OWR_FILE.GetList(owi, l_date, status,l_type);
        }

        /// <summary>
        /// 导出状态还原
        /// </summary>
        public bool ExportStatus(string l_tc_owr001, string l_tc_owr002)
        {
            return tc_OWR_FILE.ExportStatus(l_tc_owr001, l_tc_owr002);
        }

        /// <summary>
        /// 导出物流状态切换
        /// </summary>
        public bool ChangeWuLiuStatus(string l_tc_owr001, string l_tc_owr002, string l_tc_owr019)
        {
            return tc_OWR_FILE.ChangeWuLiuStatus(l_tc_owr001, l_tc_owr002, l_tc_owr019);
        }

        public bool OwsReturn(string l_tc_ows000, string l_tc_ows001, string l_tc_ows002,string l_tc_ows013, string l_tc_ows014)
        {
            return tc_OWR_FILE.OwsReturn(l_tc_ows000, l_tc_ows001, l_tc_ows002, l_tc_ows013, l_tc_ows014);
        }

        public bool OwrReturn(string l_tc_ows000, string l_tc_ows001)
        {
            return tc_OWR_FILE.OwrReturn(l_tc_ows000, l_tc_ows001);
        }

    }
}
